package org.jugile.jsontmpl.domain;

import org.jugile.jsontmpl.common.*;
import java.util.HashMap;
import java.util.Map;

import org.jugile.util.Jugile;


public abstract class ServicesBase extends Jugile {

	private Domain domain;
	protected Domain getDomain() { return domain; }
	public void setDomain(Domain d) { domain = d; } // XXX: needed as public for client Domain 

	private CallContext cctx;
	protected CallContext getCallContext() { return cctx; }
	protected void setCallContext(CallContext v) { cctx = v; }
	
	protected User getUser() {
		if (cctx == null) return null;
		return cctx.getUser();
	}
	
	
}